﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace AngryNerds
{
    public class SimpleGameObject : GameObject
    {
        public SimpleGameObject(AngryGame angryGame, Texture2D texture)
            : base(angryGame)
        {
            objTexture = texture;
        }

        public SimpleGameObject(AngryGame angryGame, Texture2D texture, float initialRotation,
            Vector2 initialPostion, Vector2 origin)
            : this(angryGame, texture)
        {
            this.zRotation = initialRotation;
            this.position = initialPostion;
            this.origin = origin;
        }

        public override void Draw(GameTime gameTime)
        {
            spriteBatch.Begin(SpriteSortMode.Texture, BlendState.AlphaBlend);

            spriteBatch.Draw(objTexture, position, null, Color.White,
                zRotation, origin, 1.0f, SpriteEffects.None, 1.0f);

            spriteBatch.End();
        }

        public override void OnCollide()
        {
        }
    }
}
